 /**
 * DISCLIMER: 
 * this library is an opensource, feel free to edit or redistribute it
 * but use it with you own risk
 * 
 * ktutnik
 */
package org.ticlib.utils
{
	import flash.utils.ByteArray;
	
	public class Utility
	{
		public static function clone(object:*):*
		{
			var bytes:ByteArray = new ByteArray( );
	        bytes.writeObject(object);
	        bytes.position = 0;
	        return bytes.readObject();
		}
		
		public static function stringSplit(word:String, delimiter:String):Array
		{
			var arr:Array = word.split(delimiter);
			var result:Array = new Array();
			for each(var tokken:String in arr)
			{
				if(tokken != "")
					result.push(tokken);
			}
			return result;
		}
	}
}